package com.rybbaby.tss.front.tssAppAppointmentManageRecord.entity;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.io.Serializable;

/**
 * @description 跟进记录
 * 
 * @author zhang
 * 
 * @createDate 2018-01-09 下午2:17:56
 */
@Entity
@Table(name = "tss_app_appointment_manage_record")
@DynamicUpdate(true)
@DynamicInsert(true)
public class TssAppAppointmentManageRecord implements Serializable {
	
	private static final long serialVersionUID = 76144202977404L;
	
	/** 主键 **/
	private String id;
	/** 活动,课程外检 **/
	private String appointmentId;
	/** 处理状态 **/
	private Integer disposeStatus;
	/** 备注 **/
	private String followUpRemark;
	/** 创建时间 **/
	private java.sql.Timestamp createTime;
	/** 版本 **/
	private Integer version;

	/**
	 * 方法: 取得主键
	 *
	 * @return java.lang.String 主键
	 */
	@Id
	@GeneratedValue(generator = "tss_app_appointment_manage_recordIDGenerator" , strategy = GenerationType.AUTO)
	@GenericGenerator(name = "tss_app_appointment_manage_recordIDGenerator" , strategy = "uuid")
	@Column(name = "id", nullable= false, length = 32)
	public String getId() {
		return this.id;
	}

	/**
	 * 方法: 设置主键
	 *
	 * @param id 主键
	 */
	public void setId(String id) {
		this.id = id;
	}

	/**
	 * 方法: 取得活动,课程外检
	 *
	 * @return java.lang.String 活动,课程外检
	 */
	@Column(name = "appointmentId", nullable= true, length = 32)
	public String getAppointmentId() {
		return this.appointmentId;
	}

	/**
	 * 方法: 设置活动,课程外检
	 *
	 * @param appointmentId 活动,课程外检
	 */
	public void setAppointmentId(String appointmentId) {
		this.appointmentId = appointmentId;
	}

	/**
	 * 方法: 取得处理状态
	 *
	 * @return java.lang.Integer 处理状态
	 */
	@Column(name = "disposeStatus", nullable= true, length = 11)
	public Integer getDisposeStatus() {
		return this.disposeStatus;
	}

	/**
	 * 方法: 设置处理状态
	 *
	 * @param disposeStatus 处理状态
	 */
	public void setDisposeStatus(Integer disposeStatus) {
		this.disposeStatus = disposeStatus;
	}

	/**
	 * 方法: 取得备注
	 *
	 * @return java.lang.String 备注
	 */
	@Column(name = "followUpRemark", nullable= true, length = 200)
	public String getFollowUpRemark() {
		return this.followUpRemark;
	}

	/**
	 * 方法: 设置备注
	 *
	 * @param followUpRemark 备注
	 */
	public void setFollowUpRemark(String followUpRemark) {
		this.followUpRemark = followUpRemark;
	}

	/**
	 * 方法: 取得创建时间
	 *
	 * @return java.sql.Timestamp 创建时间
	 */
	@Column(name = "createTime", nullable= true, length = 19)
	public java.sql.Timestamp getCreateTime() {
		return this.createTime;
	}

	/**
	 * 方法: 设置创建时间
	 *
	 * @param createTime 创建时间
	 */
	public void setCreateTime(java.sql.Timestamp createTime) {
		this.createTime = createTime;
	}

	/**
	 * 方法: 取得版本
	 *
	 * @return java.lang.Integer 版本
	 */
    @Version
	@Column(name = "version", nullable= true, length = 11)
	public Integer getVersion() {
		return this.version;
	}

	/**
	 * 方法: 设置版本
	 *
	 * @param version 版本
	 */
	public void setVersion(Integer version) {
		this.version = version;
	}
}